#wkw create 2010-3-1

INSTALL=install
BIN_DIR=/bin

LIBS=-lpthread `pkg-config --libs goocanvas libcurl libxml-2.0`
CFLAGS=-I./src `pkg-config --cflags goocanvas libcurl libxml-2.0`

objects=src/theme.o \
	src/sms.o \
	src/listview.o \
	src/slistview.o \
	src/slistmethod-default.o \
	src/downloader.o \
	src/update-deamon.o \
	src/textbox.o \
	src/exec.o \
	src/layout.o \
	src/layout-main.o \
	src/layout-diandu.o \
	src/layout-subject.o \
	src/layout-teacher.o \
	src/layout-wifi-setting.o \
	src/layout-lan-setting.o \
	src/layout-register.o \
	src/layout-setting.o  \
	src/layout-taskbar.o \
	src/layout-promptbar.o \
	src/layout-test.o \
	src/layout-introduction.o \
	src/layout-video-list.o \
	src/layout-top-list.o \
	src/button.o \
	src/animate.o \

all:	$(objects)
	$(CC) -o sms  $(objects) $(LIBS) $(CFLAGS)
clean:
	rm src/*.o
	rm sms

install:
	mkdir -p $(DESTDIR)$(BIN_DIR)
	$(INSTALL) sms $(DESTDIR)$(BIN_DIR)

